-- GENERATED SPELL FOR [Thrallmar Marksman] --


function spell0_16582(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(22121,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16582', 574, 1)
end

function Sorts_16582(pUnit, Event)
local choix_sorts_16582 = math.random(0, 0)
if choix_sorts_16582 == 0 then
pUnit:RegisterEvent('spell0_16582', 1, 1)
end
end

function mob16582_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16582', math.random(1500, 3000), 1)
end

function mob16582_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16582_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16582_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16582, 1, 'mob16582_Action')
RegisterUnitEvent(16582, 2, 'mob16582_Leave')
RegisterUnitEvent(16582, 3, 'mob16582_Kill')
RegisterUnitEvent(16582, 4, 'mob16582_Die')
